export type baseCollectClassificationConfigModel = {
  childList: [] //子集
  classificationCode: string //分类编码
  classificationName: string //分类名称
  id: number //主键ID
  notes: string //备注
  parentName: string //父级分类名称
  sortIndex: number //排序号
  statusName: string //状态名称
  totalCount: number //总行数
  parentCode:string
}

const api: ApiConfig = {
  list: {
    url: '/collection/baseCollectClassificationConfig/list',
    method: 'GET'
  },
  delete: {
    url: '/collection/baseCollectClassificationConfig/delete',
    method: 'POST'
  },
  info: {
    method: 'GET',
    url: '/collection/baseCollectClassificationConfig/info/:id'
  },
  save: {
    url: '/collection/baseCollectClassificationConfig/save',
    method: 'POST'
  },
  update: {
    url: '/collection/baseCollectClassificationConfig/update',
    method: 'POST'
  },
  //字典表
  listByParentCode: {
    method: 'GET',
    url: '/sys/dic/listByParentCode'
  },
  listTreeAll: {
    url: '/collection/baseCollectClassificationConfig/listTreeAll', //藏品分类·下拉框所有数据
    method: 'GET'
  },
  listTree: {
    url: '/collection/baseCollectClassificationConfig/listTree', //藏品分类·下拉框
    method: 'GET'
  },
  listAll: {
    url: '/collection/baseCollectClassificationConfig/listAll', //藏品分类·分页
    method: 'GET'
  },
  listOptionsByParentCode: {
    //藏品分类·线索整理·层级下拉选择框
    url: '/collection/baseCollectClassificationConfig/listOptionsByParentCode',
    method: 'GET'
  }
}

export default api
